package com.example.demo;

//import com.example.demo.Controller.UserController;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.context.ApplicationContext;
//
//@SpringBootApplication
//public class Demo5Application {
//
//	public static void main(String[] args) {
//		SpringApplication.run(Demo5Application.class, args);
////
////		User user1 = (User) context.getBean("user1");
////		User user2 = (User) context.getBean("user2");
////		System.out.println(user1);
////		System.out.println(user2);
//
////		User bean = context.getBean(User.class);
////		System.out.println(bean);
//
////		UserController userController = context.getBean(UserController.class);
////		userController.sayHi();
////
////		UserService bean = (UserService) context.getBean("userService");
////		bean.sayHi("zy");
////
////		UserController beanCon = context.getBean("userController",UserController.class);
////		beanCon.sayHi();
////
////		System.out.println(userController);
////		System.out.println(beanCon);
////		System.out.println(bean);
//	}
//}
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

@SpringBootApplication
@PropertySources({
		@PropertySource("classpath:application.properties")
})
public class Demo5Application {
	public static void main(String[] args) {
		SpringApplication.run(Demo5Application.class, args);
	}
}